<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3>部门管理</h3>
<a href="DeptServlet?type=toAdd">添加部门</a>
 <table>
 	<thead>
 		<tr>
 			<td>编号</td>
 			<td>名称</td>
 			<td>状态</td>
 			<td>备注</td>
 		
 		</tr>
 		<c:forEach items="${deptList }" var="dept">
 			<tr>
 			<td>${dept.pid }</td>
 			<td>${dept.pname }</td>
 			<td>${dept.pflag }</td>
 			<td>${dept.premark }</td>
 			<td><a href="DeptServlet?type=toUpdate&pid=${dept.pid }">修改</a></td>
 			<td><a href="DeptServlet?type=delete&pid=${dept.pid }">删除</a></td>
 			
 			</tr>
 		
 		</c:forEach>
 	</thead>
 </table>
</body>
</html>